package com.zzptc.sky.bdsjws.activites.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.zzptc.sky.bdsjws.R;

import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/4/20.
 */

public abstract class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getContentView());
        ButterKnife.bind(this);
        initData();
        initView();
    }
    //得到布局文件  根据子类来决定
    public abstract int getContentView();
    public abstract void initData();
    public abstract void initView();
}


